import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from "./store";

import toast from 'components/common/tosat'

// import FastClick from 'fastclick'
import VueLazyload from "vue-lazyload";

Vue.config.productionTip = false

//安装事件总线
Vue.prototype.$bus =  new Vue()

//安装toast插件
Vue.use(toast)

//FastClick 解决移动端300ms延迟
// FastClick.attach(document.body)

//使用懒加载插件
Vue.use(VueLazyload)

/*Vue.use(VueLazyload, {
  loading:  require('./assets/img/common/placeholder.png')
})*/

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
